<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\View\View;
use PhpParser\Node\Stmt\Return_;

//use App\Http\Controllers\Controller;
class IndexController extends Controller
{
    public function login()
    {
        session(['admin'=>1]);
        return '<h1>登录</h1>';
    }

    public function index()
    {
        //Return (View('welcom'));
        //Return '<h1>欢迎</h1>';
        return view('welcome');
    }
}
